using NodeCanvas.DialogueTrees;

public class NameCountryActor : StoryActorBase
{
	public PlayerSettingsLayer settings;

	public override void Hide()
	{
	}

	public override void OnActorSpeaking(DialogueSpeechInfo speech, bool changeActor)
	{
		settings.SetTitle(speech.statement.text);
		settings.SetOnDone(delegate
		{
			blackboard.SetDataValue("PlayerName", GGPlayerSettings.instance.GetName());
			speech.Continue();
		});
		NavigationManager.instance.Push(settings.gameObject);
	}
}
